package com.cyh.mylib.utils;

import android.content.Context;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.cyh.mylib.R;
import com.cyh.mylib.widget.RecycleViewDivider;


/**
 * @author 程延宏
 * @description:
 * @date :7/2 14:29
 */
public class CyhUtils {

    public static void setRecyclerViewDecoration(Context context, RecyclerView recyclerView){
        recyclerView.addItemDecoration(new RecycleViewDivider(context, LinearLayoutManager.HORIZONTAL
                , 1, R.color.colorrecycledivder, 0, 0));
    }

}
